var util =require('util');

//工具类的使用   继承
function Base()
{

	this.name ='base';
	this.time ='1995'

	Base.prototype.showName=function ()
	{
		console.log(this.name);

	}
	Base.prototype.showTime=function()
	{
		console.log(this.time);
	}
}
function son ()
{

	this.name='fuck'
}

util.inherits(son,Base);

var  parent = new Base();

//parent 信息

parent.showTime();
console.log(parent);

//son 的信息
var son =new son();
son.showName();
console.log(son);